package com.linkage.jz.bankruptcy.bean;

import android.text.TextUtils;

import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;

import java.util.ArrayList;
import java.util.List;

/**
 * 描述：广告信息</br>
 */
public class CourtInfo {
	
	String id = "";

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCourtName() {
		return courtName;
	}

	public void setCourtName(String courtName) {
		this.courtName = courtName;
	}

	String courtName = "";

	public static List<CourtInfo> parse(JsonArray arr) {
		List<CourtInfo> list = new ArrayList<>();
		for (int i = 0; i < arr.size(); i++) {
			list.add(parse(arr.get(i).getAsJsonObject()));
		}
		return list;
	}

	public static CourtInfo parse(JsonObject obj) {
		CourtInfo bean = new Gson().fromJson(obj, CourtInfo.class);

		return bean;
	}




}
